Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@spectrum-web-components/opacity-checkerboard
Advanced tools
The `opacity-checkerboard` class is used to highlight opacity. Leverage these styles in your component as outlined below to unify you application's visuals with those delivered by various Spectrum Web Components.
The opacity-checkerboard
class is used to highlight opacity. Leverage these styles in your component as outlined below to unify you application's visuals with those delivered by various Spectrum Web Components.
Import the styles from the opacity-checkerboard
CSS:
import opacityCheckerBoardStyles from '@spectrum-web-components/opacity-checkerboard/src/opacity-checkerboard.css.js';
Add it to your component's styles array before your component's styles. The order that you include the styles in makes a difference, because selectors within opacity checkerboard may have the same specificity as those within your component.
public static override get styles(): CSSResultArray {
return [opacityCheckerBoardStyles, styles];
}
Use the opacity-checkerboard
class in your component's render()
method:
<div
class="opacity-checkerboard"
style="inline-size: 100px; block-size: 100px;"
></div>
0.45.0 (2024-07-30)
FAQs
The `opacity-checkerboard` class is used to highlight opacity. Leverage these styles in your component as outlined below to unify you application's visuals with those delivered by various Spectrum Web Components.
The npm package @spectrum-web-components/opacity-checkerboard receives a total of 3,300 weekly downloads. As such, @spectrum-web-components/opacity-checkerboard popularity was classified as popular.
We found that @spectrum-web-components/opacity-checkerboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.